import request from '@/utils/request'

// 查询岗位列表
export function listRoleUser(query) {
  return request({
    url: '/sys/role/authUser/allocatedList',
    method: 'post',
    params: query
  })
}

// 批量取消授权用户
export function delRoleUser(roleId, userIds) {
  const data = {
    'roleId': roleId,
    'userIds': userIds
  }
  return request({
    url: '/sys/role/authUser/cancelAll',
    method: 'post',
    params: data
  })
}
